﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class controls_front_TechSearch : System.Web.UI.UserControl
{
    private string TOURL = "tech.aspx";

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            bind();
        }
    }

    private void bind()
    {
        IList list = null;

        //初始化默?的???
        //SalePartial.Model.InformationInfo info = new SalePartial.Model.InformationInfo(0, "全部子?目");

        //SalePartial.BLL.Information infoBll = new SalePartial.BLL.Information();
        //list = infoBll.GetInfoTypeById(3);  //学???
        //list.Insert(0, info);

        //techTypeList.DataSource = list;
        //techTypeList.DataTextField = "TypeName";
        //techTypeList.DataValueField = "TypeId";
        //techTypeList.DataBind();
    }

    protected void search_Click(object sender, EventArgs e)
    {
        string date = this.dateList.SelectedValue;
        string type = this.techTypeList.SelectedValue;

        //??参数,重定向到?示?果的?面
        HttpContext.Current.Response.Redirect(
            Request.ApplicationPath + "\\" + TOURL + "?date=" + date + "&type=" + type + "&keyWord="
                + this.keyWord.Text, true);
    }
}
